IF NOT EXISTS (SELECT * FROM master.dbo.syslogins WHERE loginname = N'CSMARTNET')
CREATE LOGIN [CSMARTNET] WITH PASSWORD = 'p@ssw0rd'
GO
CREATE USER [CSMARTNET] FOR LOGIN [CSMARTNET]
GO
